package com.mrtan.mapper;

import com.mrtan.bean.Stock;
import com.mrtan.vo.OrderWhereVO;
import com.mrtan.vo.StockInsertVO;
import com.mrtan.vo.StockVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Mr.Tan
 * @description 针对表【stock(库存)】的数据库操作Mapper
 * @createDate 2023-12-04 11:12:04
 * @Entity com.mrtan.bean.Stock
 */
public interface StockMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Stock record);

    int insertSelective(Stock record);


    int updateByPrimaryKeySelective(Stock record);

    int updateByPrimaryKey(Stock record);

    List<Stock> selectAllProduct(OrderWhereVO orderWhereVO);

    List<Stock> selectAll(StockVO stockVO);

    int updateByWarehouseId(StockInsertVO stockInsertVO);

    Integer selectNumber(@Param("warehouseId") Integer warehouseId, @Param("productId") Integer productId);

    List<Stock> showStockProducts(StockVO stockVO);
}
